Merge https://github.com/velero-io/velero:v1.18.3-rc.1 (6e8f61c) into oadp-1.6 - #551
Conversation
* Replace github.com/robfig/cron/v3 by github.com/netresearch/go-cron Replace k8s.io/utils/pointer with k8s.io/utils/ptr Signed-off-by: Xun Jiang <xun.jiang@broadcom.com> * Replace gopkg.in/yaml.v3 by go.yaml.in/yaml/v3 Signed-off-by: Xun Jiang <xun.jiang@broadcom.com> * Replace github.com/joho/godotenv. Move the needed code into Velero repository. Signed-off-by: Xun Jiang <xun.jiang@broadcom.com> * Replace github.com/pkg/errors by github.com/cockroachdb/errors Change errors.Cause to errors.Is, because github.com/cockroachdb/errors New() function create a error with error stack with depth 1, but github.com/pkg/errors's New() function create error with no depth. Signed-off-by: Xun Jiang <xun.jiang@broadcom.com> --------- Signed-off-by: Xun Jiang <xun.jiang@broadcom.com> Signed-off-by: Xun Jiang/Bruce Jiang <59276555+blackpiglet@users.noreply.github.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Hi @oadp-rebasebot-app[bot]. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
* Fix PodVolumeBackup metadata loss on fs-backup timeout When a backup hits the fs-backup timeout, WaitAllPodVolumesProcessed returned nil because PVBs were only collected from the indexer in the done branch of the select. This discarded all PVB metadata including already-completed PVBs, making their data unrestorable. Move the PVB collection loop to run after the select so tracked PVBs are always persisted regardless of timeout. Fixes velero-io#9986 Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com> * Add changelog for PR velero-io#9995 Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com> * Filter non-completed PVBs in hasPodVolumeBackup After preserving tracked PVBs on timeout, non-completed PVBs (in-progress or with no snapshot ID) would cause hasPodVolumeBackup to return true, leading the restore to skip the original PV and dynamically re-provision it without any data to restore from. Only match PVBs that are Completed with a valid SnapshotID. Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com> * Add unit tests for hasPodVolumeBackup phase filtering Verify that hasPodVolumeBackup only matches PVBs that are Completed with a valid SnapshotID, and rejects in-progress, failed, or empty-snapshot PVBs. Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com> --------- Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com> (cherry picked from commit e593ba7)
Signed-off-by: Shubham Pampattiwar <spampatt@redhat.com>
…k-9995-release-1.18 [release-1.18] Fix PodVolumeBackup metadata loss on fs-backup timeout
Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com>
…design backup filter enhancement design Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…-filters-interface extend backup resource policy Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…_incompatibility_validation validate incompatiblity with legacy filters Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…-filter-policy-validation Add validations for ClusterScopedFilterPolicy Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…ter-policies-validation Add validations for NamespacedFilterPolicies Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…-core implemented fine-grained backup filter policies Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…-cli cli support for fine-grained filter policies Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…r-lookup caching the call for GetNamespaceFilter Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…backup-filters-for-1.18 Fine grained backup filters for 1.18
Signed-off-by: chlins <chlins.zhang@gmail.com>
Signed-off-by: chlins <chlins.zhang@gmail.com>
Add the design for global volume policies to address the requirement in velero-io#9858 Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com>
Signed-off-by: chlins <chlins.zhang@gmail.com>
Cherry-pick for velero-io#9859 and velero-io#9858
* restore filter enhancement enhance restore filter with resource policies, introduce resource policies with fine-grained control for resources in restore, both cluster scoped resources and namespace scoped resources, with labels, names include/exclude support with glob patterns. Signed-off-by: Adam Zhang <adam.zhang@broadcom.com> * address review comments - Add introductory sentence linking to the Phase 1 backup filters PR. - Add clarification that a backup's ConfigMap may not exist on the target cluster because it might be on a different Velero instance. - Remove redundant explanations about backup-specific concepts (volume policies, include/exclude policies). - Remove the non-goal regarding restore-side `includeExcludePolicy`. - Remove the "Interaction with Backup-Side Filters" section. - Remove "Step 5" from the design, as additional items requested by plugins should intentionally bypass fine-grained filter checks (consistent with backup side Stage 2). Signed-off-by: Adam Zhang <adam.zhang@broadcom.com> * address more review comments - remove confusion rows regarding per-namespace kind list - simplified CLI output to configmap name only Signed-off-by: Adam Zhang <adam.zhang@broadcom.com> --------- Signed-off-by: Adam Zhang <adam.zhang@broadcom.com>
…l format Upstream velero switched golangci-lint installation from the curl-based installer to `go install` in the v1.18.2-rc.2 cycle. The version extraction regex in Makefile.prow only matched the old curl pattern, causing an empty version string and a checksum verification failure in CI. Update the extraction to handle both the old `curl | sh` format and the new `go install ... @vX.Y.Z` format. For v2+, use `go install` directly; for v1.x, fall back to the curl installer. Closes openshift#519 Signed-off-by: Joseph Vaikath <jvaikath@redhat.com> Signed-off-by: Joseph <jvaikath@redhat.com>
Signed-off-by: Joseph Vaikath <jvaikath@redhat.com> Signed-off-by: Joseph <jvaikath@redhat.com>
846da62 to
c115419
Compare
The .golangci.yml config uses perfsprint.concat-loop which requires golangci-lint >= v2.6.0. v2.5.0 rejects the config at schema validation. Matches the bump already applied in PR #551. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
/hold for #568 |
The pr-changelog-check workflow is an upstream velero-io/velero workflow. Add the same repository guard that oadp-dev carries so the job is skipped on openshift/velero PRs targeting oadp-1.6. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Add `if: github.repository == 'velero-io/velero'` guards to all workflows that oadp-dev already gates but oadp-1.6 was missing: - auto_assign_prs.yml (add-reviews job) - auto_label_prs.yml (triage job) - pr-codespell.yml (codespell job) - prow-action.yml (execute job) - rebase.yml (rebase job) - stale-issues.yml (stale job) These workflows are upstream velero-io/velero concerns and should not run on openshift/velero PRs. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
/unhold |
push-builder.yml only runs on velero-io/velero main, so builder images are never published for release branches. Any PR to oadp-1.6 (or velero release-1.18) that has a Dockerfile change in history will fail to pull the image. Gate the check to the only context where the builder image is guaranteed to exist. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
@oadp-rebasebot-app[bot]: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Joeavaikath, oadp-rebasebot-app[bot], sseago, weshayutin The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is an automated rebase PR generated by RebaseBot.
Summary
https://github.com/velero-io/velero:v1.18.3-rc.1https://github.com/openshift/velero:oadp-1.6`f065319` UPSTREAM: : Updating go modules
go.mod
`e147103` UPSTREAM: : Normalize Go version in Dockerfiles
Dockerfile
Dockerfile-Windows
hack/build-image/Dockerfile
`4ff6f32` UPSTREAM: : Updating go modules
go.sum
go.mod